package com.leadingsoft.common.constant;

import java.util.HashMap;
import java.util.Map;

public class Constant {
	public static final String SESSION_ID = "SESSION_ID";
	public static final byte IS_EXIST = 1;
	public static final byte NOT_EXIST = 1;
	public static final byte FILE = 1;
	public static final byte FOLDER = 0;
	public static final String FOLDER_ICON = "fa fa-folder";
	public static final String FILE_EXCEL_ICON = "fa fa-file-excel-o";
	public static final String FILE_PDF_ICON = "fa fa-file-pdf-o";
	public static final String FILE_SOUND_ICON = "fa fa-file-sound-o";
	public static final String FILE_WORD_ICON = "fa fa-file-word-o";
	public static final String FILE_IMAGE_ICON = "fa fa-file-image-o";
	public static final String FILE_TEXT_ICON = "fa fa-file-text-o";
	public static final String FILE_ZIP_ICON = "fa fa-file-zip-o";
	public static final String FILE_MOVIE_ICON = "fa fa-file-movie-o";
	public static final String FILE_CODE_ICON = "fa fa-file-code-o";
	public static final String FILE_PPT_ICON = "fa fa-file-powerpoint-o";
	public static final String FILE_ICON = "fa fa-file-o";
	public static final Map<String, String> CONTENT_TYPE = new HashMap<String, String>() {
		private static final long serialVersionUID = 1273768882975566122L;
		{
			put("text/plain", FILE_TEXT_ICON);
			put("application/msword", FILE_WORD_ICON);
			put("application/vnd.openxmlformats-officedocument.wordprocessingml.document", FILE_WORD_ICON);
			put("application/vnd.ms-excel", FILE_EXCEL_ICON);
			put("application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", FILE_EXCEL_ICON);
			put("application/vnd.ms-powerpoint", FILE_PPT_ICON);
			put("application/vnd.openxmlformats-officedocument.presentationml.presentation", FILE_PPT_ICON);
			put("image/png", FILE_IMAGE_ICON);
			put("image/jpeg", FILE_IMAGE_ICON);
			put("text/x-java", FILE_CODE_ICON);
			put("video/x-msvideo", FILE_MOVIE_ICON);
			put("application/zip", FILE_ZIP_ICON);
			put("audio/mpeg", FILE_SOUND_ICON);
			put("application/pdf", FILE_PDF_ICON);
			put("other", FILE_ICON);
		}
	};
}
